import request, { Method, buyerUrl, expertUrl } from "@/plugins/request.js";
// 获取咨询列表
export function getList(data) {
  return request({
    url: buyerUrl + "/buyer/order/userConsult/getListByUserConsultDTO",
    method: Method.POST,
    headers: {
      "Content-Type": "application/json",
    },
    needToken: true,
    data,
  });
}

// 立即评价
export function evaluation(data) {
  return request({
    url: `${expertUrl}/expert/expert/expertEvaluate/save`,
    method: Method.POST,
    needToken: true,
    headers: {
      "Content-Type": "application/json",
    },
    data,
  });
}

// 取消预约
export function cencelOrder(id) {
  return request({
    url: `${buyerUrl}/buyer/order/userConsult/updateStatus/${id}`,
    method: Method.POST,
    needToken: true,
  });
}